import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/login',
        },
        {
            path: '/login',
            component: () => import('@/views/Login.vue')
        },
        {
            path: '/homepage',
            component: () => import('@/views/home/HomePage.vue')
        },
        {
            path: '/device',
            component: () => import('@/views/device/DeviceManage.vue')
        },
        {
            path: '/lifeguard',
            component: () => import('@/views/lifeguard/LifeGuardList.vue')
        },
        {
            path: '/authority',
            component: () => import('@/views/authority/AuthorizationManage.vue')
        },
        {
            path: '/alarm',
            component: () => import('@/views/alarm/AlarmRecord.vue')
        },
        {
            path: '/alarm/resolved',
            component: () => import('@/views/alarm/AlarmResloved.vue')
        },
        {
            path: '/pool-info',
            component: () => import('@/views/pool-info/PoolInfo.vue')
        },
    ]
})
